﻿using Eqwww.Domain.Models.Identity;
using Eqwww.Domain.Models.SystemManage;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Eqwww.Domain.Models.SystemSecurity
{
    public class DbBackupModel : ICreateAudited, ILastUpdateAudited, IDeleteAudited
    {
        public string Id { get; set; }
        [Display(Name = "创建人")]
        public string CreateUserId { get; set; }
        public virtual UserModel CreateUser { get; set; }
        [Display(Name = "创建时间")]
        public DateTime? CreateTime { get; set; }
        [Display(Name = "最后更新人")]
        public string LastUpdateUserId { get; set; }
        public virtual UserModel LastUpdateUser { get; set; }
        [Display(Name = "最后更新时间")]
        public DateTime? LastUpdateTime { get; set; }
        [Display(Name = "删除标识")]
        public bool? DeleteMark { get; set; }
        [Display(Name = "删除人")]
        public string DeleteUserId { get; set; }
        public virtual UserModel DeleteUser { get; set; }
        [Display(Name = "删除时间")]
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 数据库名称
        /// </summary>
        [Display(Name = "数据库名称")]
        public string DbName { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        [Display(Name = "文件名称")]
        public string FileName { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        [Display(Name = "文件大小")]
        public string FileSize { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        [Display(Name = "文件路径")]
        public string FilePath { get; set; }
        /// <summary>
        /// 备份时间
        /// </summary>
        [Display(Name = "备份时间")]
        public DateTime? BackupTime { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Display(Name = "排序码")]
        public int? SortCode { get; set; }

        [Display(Name ="备份方式")]
        public DbBackupType? DbBackupType { get; set; } 
    }
}
